home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000219_dba_222@yahoo.com_Wed Jan 15 11:03:33 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  86 lines

  1. Article: 14009 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!bloom-beacon.mit.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: dba_222@yahoo.com (Roger Redford)
  4. Newsgroups: comp.databases.oracle.server,comp.security.ssh,comp.terminals,comp.protocols.kermit.misc
  5. Subject: Re: Strange behavior with SQLPLUS (Oracle)
  6. Date: 15 Jan 2003 08:01:24 -0800
  7. Organization: http://groups.google.com/
  8. Lines: 67
  9. Message-ID: <a8c29269.0301150801.6275acb1@posting.google.com>
  10. References: <a8c29269.0301140753.7ee5175c@posting.google.com> <3E2437A7.8FBD4FB7@wfl.fha.dot.gov>
  11. NNTP-Posting-Host: 205.181.14.12
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 1042646484 26874 127.0.0.1 (15 Jan 2003 16:01:24 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 15 Jan 2003 16:01:24 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.databases.oracle.server:214903 comp.security.ssh:30800 comp.terminals:17735 comp.protocols.kermit.misc:14009
  18.  
  19. Thanks for responding.  
  20.  
  21. I did know about formatting, and this does work.  But it's double 
  22. the work to format each column every time you run a query.
  23.  
  24. Even using substr(field, 1, 10) should only return the number of
  25. characters specified.  Currently, even using substr returns an entire
  26. line, no matter how long the line is. 
  27.  
  28. Does anyone know how to make it work normally?  
  29.  
  30.  
  31. Eric Kimble <ekimble@wfl.fha.dot.gov> wrote in message news:<3E2437A7.8FBD4FB7@wfl.fha.dot.gov>...
  32. > Roger:
  33. > In SQL*Plus, when only wanting to look at a portion of the column you need to
  34. > tell the environment to only show the portion that you want. issue a statement
  35. > like the following on the SQL*Plus command line
  36. > column table_name format a30.
  37. > Then read up on column formatting in the documentation at tahiti.oracle.com
  38. > Roger Redford wrote:
  39. > > I've recently moved to a new environment, and I'm getting some strange
  40. > > symptoms with sqlplus.  The environment is:
  41. > >
  42. > > Oracle 9.2, on solaris
  43. > > Ibm thinkpad laptop
  44. > > Smarterm and Putty
  45. > >
  46. > > I've used both Smarterm and Putty to connect to unix and use sqlplus.  It is
  47. > > using SSH, but the symptoms occur whether I am just using telnet, or ssh.
  48. > >
  49. > > The symptom is:
  50. > >
  51. > > When do I select some long columns, such as TABLE_OWNER,
  52. > > OR table_name, the field takes up a whole line.
  53. > >
  54. > > IE.
  55. > >
  56. > > Select  table_owner ,
  57. > >                 table_name  ,
  58. > >                 partition_name,
  59. > >                 NUM_ROWS,
  60. > >                 LAST_ANALYZED
  61. > > from            all_tab_partitions
  62. > > where           NUM_ROWS = 0
  63. > > ORDER BY        TABLE_OWNER,
  64. > >                 TABLE_NAME,
  65. > >                 PARTITION_NAME
  66. > >
  67. > > I have tried:
  68. > > set linesize 30000
  69. > > substr(table_owner, 1, 20) as table_owner
  70. > >
  71. > > Yet, no matter what I do, the symptoms persist.
  72. > >
  73. > > Set wrap is on.  If I set it off, I will only see the first field.
  74. > >
  75. > > The crazy thing is, that my neighbors' sqlplus works normally,
  76. > > and only returns 30 or less columns.
  77. > >
  78. > > Is there a setting that I should be concerned about?  Is it in
  79. > > sqlplus, or in the client software (Putty, or Smarterm)?
  80. > >
  81. > > Thanks
  82.